const express = require("express")

//返回app
const app = express()

app.get("/", (req, res, next) => {
  res.end("Hello express")
})

app.post("/", (req, res, next) => {
  res.end("Hello post")
})

app.post("/login", (req, res, next) => {
  res.end("welcome ")
})



//开启监听
app.listen(8000, () => {
  console.log("express服务器启动成功");
})